package com.ada.base.security.service;

import com.ada.base.security.entity.Role;
import com.ada.base.security.entity.RoleAuthority;
import com.ada.base.security.entity.res.RoleRes;

import java.util.List;

public interface RoleService {
    List<RoleRes> roleList(long userId);

    List<RoleRes> roleList(long userId, int type);

    int add(Role role);

    void delete(Long roleId);

    void allocAuthority(List<RoleAuthority> roleAuthorities);
}
